package com.zhouxiaoge.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.LinkedHashMap;
import java.util.Map;

@Data
@ConfigurationProperties("swagger2")
public class Swagger2Properties {

    private Map<String, GroupInfo> groups = new LinkedHashMap<>();

    @Data
    public static class GroupInfo {

        private String basePackage;

        private String title;

        private String description;
    }

}